package com.zhijiang.hospital.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.zhijiang.hospital.entrty.ComEmployee;
import com.zhijiang.hospital.entrty.MeetingCheckRecode;
import com.zhijiang.hospital.entrty.SMeetingcheckrecode;
import com.zhijiang.hospital.entrty.dto.MeetingEmployeeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

@Mapper
@DS("master")
public interface MeetingEmployeeMapper {

        List<MeetingEmployeeDto> getAll();

    Integer insert(@Param("meeting") MeetingCheckRecode meeting);

    ComEmployee getPhone(String emplCode, String emplName);

    SMeetingcheckrecode getOne(@Param("mCode")String mCode,@Param("emplCode")String emplCode,@Param("emplName") String emplName);


    SMeetingcheckrecode getName(String mCode, String iphone);

    ComEmployee getById(@Param("mOperCode") String mOperCode);

    MeetingEmployeeDto getByName(@Param("deptCode") String deptCode);

    Integer insertOutSide(@Param("meeting")MeetingCheckRecode meetingCheckRecode);

    void addOutSideEmployee(@Param("sMeetingcheckrecode") SMeetingcheckrecode sMeetingcheckrecode);
}